JAVAC=javac
JAVA=java
LEX=java JLex.Main
CUP=java java_cup.Main -expect 20

all: ObjectCall.class


.SUFFIXES: .lex .cup .java .class $(SUFFIXES)

.java.class: $<.java
	$(JAVAC) $<
#
#.cup.java: $<.cup $<.lex.class
#	$(CUP) -parser $<.java < $<
#
#.lex.lex.java: $<.lex
#	$(LEX) $<


ObjectCall.class: ObjectCall.java ObjectCall.lex.class
	$(JAVAC) ObjectCall.java

ObjectCall.lex.java:	ObjectCall.lex
	$(LEX) ObjectCall.lex

ObjectCall.java:	ObjectCall.cup
	$(CUP) -parser ObjectCall < ObjectCall.cup


clean:
	rm -f *.class 
	rm -f ObjectCall.lex.java 
	rm -f sym.java
	rm -f ObjectCall.java
	rm -f *.html
run:
#	$(JAVA) com.ekosys.sgml.Prueba <kk.html
	$(JAVA) com.ekosys.util.ObjectCall.Prueba <kk.html
